import request from '@/utils/request'

// 查询产品列表
export function listCategory(query) {
    return request({
        url: '/equip/category/list',
        method: 'get',
        params: query
    })
}

// 新增产品
export function addCategory(data) {
    return request({
        url: '/equip/category/',
        method: 'post',
        data: data
    })
}

// 修改用户
export function updateCategory(data) {
    return request({
        url: '/equip/category/',
        method: 'put',
        data: data
    })
}

// 删除用户
export function delCategory(id) {
    return request({
        url: '/equip/category/' + id,
        method: 'delete'
    })
}


// 查询产品列表
export function selectList() {
    return request({
        url: '/equip/category/selectList',
        method: 'get'
    })
}
